package com.linkage.cart.web;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.linkage.book.pojo.Book;
import com.linkage.cart.service.CartitemService;
import com.linkage.user.pojo.User;

@Controller
@RequestMapping("/cartitemController")
public class CartitemController {

	@Autowired
	private CartitemService cartitemService;
	
	
	@RequestMapping(value="/addBookInCart",method = RequestMethod.GET)
	public String addBookInCart(User user,Book book) {
		cartitemService.addBookInCart(user,book);
		return "";
	}
}
